@model OurWedding1.Models.ConfirmationKey

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>ConfirmationKey</legend>

    <div class="display-label">Key</div>
    <div class="display-field">@Model.Key</div>

    <div class="display-label">isReleased</div>
    <div class="display-field">@Model.isReleased</div>

    <div class="display-label">ConfirmationDate</div>
    <div class="display-field">@String.Format("{0:g}", Model.ConfirmationDate)</div>

    <div class="display-label">isConfirmed</div>
    <div class="display-field">@Model.isConfirmed</div>

    <div class="display-label">GuestGroup</div>
    <div class="display-field">@(Model.GuestGroup == null ? "None" : Model.GuestGroup.Name)</div>
</fieldset>

@Url.Action("Confirm", "ConfirmationKeys", new { key = Model.Key }, Request.Url.Scheme)
<div>
    <img src="http://chart.apis.google.com/chart?cht=qr&chs=300x300&chl=@Url.Action("Confirm", "ConfirmationKeys", new { key = Model.Key }, Request.Url.Scheme)" />
</div>
<p>
    @Html.ActionLink("Edit", "Edit", new { id = Model.ConfirmationKeyId }) |
    @Html.ActionLink("Back to List", "Index")
</p>


